package kit.edu.lego.gruppe3.actions;

import kit.edu.lego.gruppe3.sensors.GroundType;
import kit.edu.lego.gruppe3.sensors.Scanner;
import lejos.nxt.LCD;
import lejos.util.Delay;

public class OriLineTest {

	public static void main(String[] args) {
		Scanner.setup(-90);
		while (true) {
			Scanner.scan();
			LCD.clear();
			LCD.drawString(Orientation.centerOnLine(false) +"",0,1);
			Scanner.getRangeAt(0);
			Delay.msDelay(5000);
			Orientation.orientAtType(GroundType.Line);
			Delay.msDelay(5000);
		}
	}
}
